package com.raymond.entity.settlement;

import com.raymond.entity.commons.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * desc-结算单明细实体
 *
 * @author houmenghe
 * @date 2025/04/21 17:21
 **/
@Data
@ApiModel("结算单明细实体")
public class OrderSettlementDetailEntity extends BaseEntity {

    @ApiModelProperty("结算单系统编号")
    private Long orderSettlementSysNo;

    @ApiModelProperty("项目名称")
    private String name;

    @ApiModelProperty("规格型号")
    private String model;

    @ApiModelProperty("税前单价(元)")
    private BigDecimal price;

    @ApiModelProperty("原始税前单价(元)")
    private BigDecimal originalPrice;

    @ApiModelProperty("税率")
    private BigDecimal taxRate;

    @ApiModelProperty("综合单价(元)")
    private BigDecimal includeTaxPrice;

    @ApiModelProperty("原始综合单价(元)")
    private BigDecimal originalIncludeTaxPrice;

    @ApiModelProperty("数量")
    @NotNull(message = "数量不能为空")
    private BigDecimal quantity;

    @ApiModelProperty("含税金额(元)")
    private BigDecimal amount;

    @ApiModelProperty("不含税金额(元)")
    private BigDecimal amountExcludeTax;

    @ApiModelProperty("税金(元)")
    private BigDecimal tax;

    @ApiModelProperty("品牌编号")
    private Long brandSysNo;

    @ApiModelProperty("品牌名称")
    private String brandName;

    @ApiModelProperty("单位编号")
    private Long unitSysNo;

    @ApiModelProperty("单位名称")
    private String unitName;

    @ApiModelProperty("备注")
    private String comment;
}
